/**
 * 
 */
package com.et114.components.tree.tree51;

import java.util.ArrayList;
import java.util.List;

import org.springframework.util.Assert;

import com.et114.core.utility.StringPool;

/**
 * @author guanhw
 */
public class BaseTree51Model {
	private String baseName ;
	private boolean isRoot ;
	private List childNodes = new ArrayList( ); // 节点类表
	private String href ;
	private String src ;
	private String onclick ;
	private String ondbClick  ;
	private String target ; 
	private String txtOnclick ;
	private String locValue ;
	private String isTarget ;//root pro
	private String rootHref; 
	
	public static String  LOC_VALUES = "locValue" ; 
	public static String  IS_TARGET_Y = "yes" ;
	public static String  IS_TARGET_N = "no" ; 
	
	public void convertArrays( Object[] vs ) {
		Assert.notNull ( vs , "vs is null !" ) ; 
		StringBuffer sb = new StringBuffer( ) ;
		for ( int i = 0 ; i < vs.length ; i ++ ) {
			sb.append ( vs[ i ] )  ;
			if ( i != vs.length - 1 ) sb.append ( StringPool.COMMA ) ; 
		}
		if ( sb.length ( ) > 0 )  locValue = sb.toString ( ) ; 
	}
	public String getBaseName ( ) {
		return baseName;
	}
	public void setBaseName ( String baseName ) {
		this.baseName = baseName;
	}
	public boolean isRoot ( ) {
		return isRoot;
	}
	public void setRoot ( boolean isRoot ) {
		this.isRoot = isRoot;
	}

	public List getChildNodes ( ) {
		return childNodes;
	}
	public void setChildNodes ( List childNodes ) {
		this.childNodes = childNodes;
	}
	public String getHref ( ) {
		return href;
	}
	public void setHref ( String href ) {
		this.href = href;
	}
	public String getSrc ( ) {
		return src;
	}
	public void setSrc ( String src ) {
		this.src = src;
	}
	public String getOnclick ( ) {
		return onclick;
	}
	public void setOnclick ( String onclick ) {
		this.onclick = onclick;
	}
	public String getOndbClick ( ) {
		return ondbClick;
	}
	public void setOndbClick ( String ondbClick ) {
		this.ondbClick = ondbClick;
	}
	public String getTarget ( ) {
		return target;
	}
	public void setTarget ( String target ) {
		this.target = target;
	}
	public String getTxtOnclick ( ) {
		return txtOnclick;
	}
	public void setTxtOnclick ( String txtOnclick ) {
		this.txtOnclick = txtOnclick;
	}
	public String getLocValue ( ) {
		return locValue;
	}
	public void setLocValue ( String locValue ) {
		this.locValue = locValue;
	}
	public String getIsTarget ( ) {
		return isTarget;
	}
	public void setIsTarget ( String isTarget ) {
		this.isTarget = isTarget;
	}
	public String getRootHref ( ) {
		return rootHref;
	}
	public void setRootHref ( String rootHref ) {
		this.rootHref = rootHref;
	}
}
